/*
 * Students:
 * Massimiliano Rango - 610826
 * Martina Benedetto - 610962
 * 
 * A.A 2011/2012
 * 
 */ 

/**
 *
 * This class represents an abstract message. It stores the ID and the position
 * of the node which sent first this message.
 * 
 * @version 1.0 27 Dec 2011
 * @author Massimiliano Rango
 *
 */
public abstract class Message {
	
	private int m_ID;
	private Position m_departure;
	
	/**
	 * Creates a new Message 
	 * @param id ID of the node which created the message
	 * @param departure Position of the node which created the message
	 */
	public Message(int id, Position departure) {
		m_ID = id;
		m_departure = departure;
	}
	
	public int getID() {
		return m_ID;
	}
	
	public Position getPosition() {
		return m_departure;
	}

}
